package ronin.toolkit;

import javax.swing.*;
import java.awt.*;
import ronin.graphics.*;

public class AnubiaMapEditor  extends JFrame {
    
    
    JToolBar controlPanel; 	// holds top control buttons
    JPanel sideBar;
    

    public AnubiaMapEditor() {
	
	setNativeLookAndFeel();
	setSize(1024, 600);
	setLayout(new BorderLayout());
	
	Container contentPane = getContentPane();
	
	// setup  panels
	controlPanel = new JToolBar();
	controlPanel.setPreferredSize(new Dimension(1024, 60));
	//controlPanel.setBorder(BorderFactory.createLineBorder (Color.black, 1));
	///controlPanel.setBackground(Color.black);
	
	sideBar = new JPanel();
	sideBar.setPreferredSize(new Dimension(250, 600));
	//sideBar.setBorder(BorderFactory.createLineBorder (Color.black, 1));
	
	//add stuff to content pane
	contentPane.add(controlPanel, BorderLayout.NORTH);
	contentPane.add(sideBar, BorderLayout.WEST);
	contentPane.add(new GrimaceGamelet(800, 540), BorderLayout.CENTER);
	
	// do last, show editor
	setVisible(true);
    }

    // use native look and field for containters and components.
    public static void setNativeLookAndFeel() {
	
	try {
	   
	    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
	} 
	catch(Exception e) {
	    
	    System.out.println("Error setting native LAF: " + e);
	}
    } ////setNativeLookAndFeel
    
    
    // start the frame dog
    public static void main(String[] args) {
	JFrame frame = new AnubiaMapEditor();
    }

}
